package com.maserb.monitor.enums;

import org.hibernate.annotations.Cache;
import org.springframework.cache.annotation.Cacheable;

import java.util.ArrayList;
import java.util.List;

public enum SampleUnitEnum {
    MS2(1, "m/s²");

    private int value;
    private String name;

    SampleUnitEnum(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    public boolean equals(SampleUnitEnum item) {
        return this.getValue() == item.getValue() && this.getName().equals(item.getValue());
    }
}
